package com.freedom.pms.goods.infrastructure.persistence.assembler;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freedom.pms.goods.domain.pojo.bo.GoodsSpuBO;
import com.freedom.pms.goods.infrastructure.persistence.pojo.po.GoodsSpuPO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface GoodsSpuAssembler {

    Page<GoodsSpuBO> toBOPage(Page<GoodsSpuPO> goodsSpuPOPage);

    GoodsSpuBO toBO(GoodsSpuPO goodsSpuPO);
}